package com.yjd.comm.enums;

/**
 * Created by yjd-wap on 2017/6/27.
 */
public class MessageEnum {

    public enum SendStatus {
        success(0, "成功"),
        frequency(-1000, "一分钟内只能发送一次"),
        max(-1001, "达到最大发送次数"),
        hourmax(-1002, "1小时内最多获取3次");

        private int code;
        private String label;

        private SendStatus(int code, String label) {
            this.code = code;
            this.label = label;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }
    }


        /**
         * 校验状态
         *
         * @author renbangjie renbangjie@126.com
         * @date 2015-4-15 上午9:26:58
         */
        public enum ValidStatus {
            success(0, "成功"),
            nullity(-1000, "无效验证码"),
            max(-1001, "已达到最大错误次数,注销验证码"),
            mismatching(-1002, "错误的验证码");

            private int code;
            private String label;

            private ValidStatus(int code, String label) {
                this.code = code;
                this.label = label;
            }

            public int getCode() {
                return code;
            }

            public void setCode(int code) {
                this.code = code;
            }

            public String getLabel() {
                return label;
            }

            public void setLabel(String label) {
                this.label = label;
            }
        }
}
